// pages/school/school.js
const app = getApp();
Page({

  /**
   * 页面的初始数据 
   */
  data: {
    img:''
  },

  /** 
   * 生命周期函数--监听页面加载
   */ 
  onLoad: function (options) {
    var me = this;
    var serverUrl = app.serverUrl;
    wx.request({
      url: serverUrl + '/getSchoolEnterpriseInfo',
      method: "Post",
      success: function (res) {
        console.log(res.data);
        if (res.data.status == 200) {
          var imageInfo = res.data.data;
          console.log('---------')
          console.log(imageInfo);
          var imageList = imageInfo[0].schoolEntershow.split('|');

         } else {
          console.log('获取图片失败')
        }
        me.setData({
          img: serverUrl + imageList[0]
        })
      }
    })
  },
})